JavaScript

A5.ViewBoxsetElementClass Method

Syntax

A5.ViewBox.setElementClass(value,className)

A5.ViewBox.setElementClass(id,className)

Arguments

valueany

The value of the element(s) in the view box to set the class name of.

idstring

The ID of the element in the view box to set the class name of. Must be prefixed with a "#", for example "#button1".

classNamestring

The class name to apply to the element(s).

Description

Set the class name of element(s) in the view box.

Example

// To get a pointer to the A5.ViewBox class see {dialog.object}.getControl
// assume vbObj is a pointer to an instance of the A5.ViewBox class
vbObj.setElementClass('a','item highlight'); // set the class names of the element(s) with the value of "a" to "item" and "highlight"